package com.hongxun.modules.api.service.impl;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BOtherQuantitiesDao;
import com.hongxun.modules.api.entity.BOtherQuantitiesEntity;
import com.hongxun.modules.api.service.BOtherQuantitiesService;



@Service("bOtherQuantitiesService")
public class BOtherQuantitiesServiceImpl implements BOtherQuantitiesService {
	@Autowired
	private BOtherQuantitiesDao bOtherQuantitiesDao;
	
	@Override
	public BOtherQuantitiesEntity queryObject(String guid){
		return bOtherQuantitiesDao.queryObject(guid);
	}
	
	@Override
	public List<BOtherQuantitiesEntity> queryList(Map<String, Object> map){
		return bOtherQuantitiesDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bOtherQuantitiesDao.queryTotal(map);
	}
	
	@Override
	public void save(BOtherQuantitiesEntity bOtherQuantities){
		bOtherQuantities.setGuid(UUID.randomUUID().toString());
		bOtherQuantitiesDao.save(bOtherQuantities);
	}
	
	@Override
	public void update(BOtherQuantitiesEntity bOtherQuantities){
		bOtherQuantitiesDao.update(bOtherQuantities);
	}
	
	@Override
	public void delete(String guid){
		bOtherQuantitiesDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bOtherQuantitiesDao.deleteBatch(guids);
	}
	
}
